package com.jason.schedulemigrationtest.mapper;


import com.jason.schedulemigrationtest.po.ExpressOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExpressOrderHistoryMapper {

    int batchInsert(@Param("expressOrders") List<ExpressOrder> expressOrders);

    /**
     * 根据订单号查询单个订单
     */
    ExpressOrder queryByOrderId(@Param("orderId") Long orderId);

    /**
     * 根据时间范围查询订单
     */
    List<ExpressOrder> queryByTimeRange(@Param("startTime") String startTime, @Param("endTime") String endTime);


}
